package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.StandingbookMapper;
import com.ruoyi.system.domain.Standingbook;
import com.ruoyi.system.service.IStandingbookService;

/**
 * 台账记录1Service业务层处理
 * 
 * @author xjj
 * @date 2022-04-08
 */
@Service
public class StandingbookServiceImpl implements IStandingbookService 
{
    @Autowired
    private StandingbookMapper standingbookMapper;

    /**
     * 查询台账记录1
     * 
     * @param recordId 台账记录1主键
     * @return 台账记录1
     */
    @Override
    public Standingbook selectStandingbookByRecordId(Long recordId)
    {
        return standingbookMapper.selectStandingbookByRecordId(recordId);
    }

    /**
     * 查询台账记录1列表
     * 
     * @param standingbook 台账记录1
     * @return 台账记录1
     */
    @Override
    public List<Standingbook> selectStandingbookList(Standingbook standingbook)
    {
        return standingbookMapper.selectStandingbookList(standingbook);
    }

    /**
     * 新增台账记录1
     * 
     * @param standingbook 台账记录1
     * @return 结果
     */
    @Override
    public int insertStandingbook(Standingbook standingbook)
    {
        return standingbookMapper.insertStandingbook(standingbook);
    }

    /**
     * 修改台账记录1
     * 
     * @param standingbook 台账记录1
     * @return 结果
     */
    @Override
    public int updateStandingbook(Standingbook standingbook)
    {
        return standingbookMapper.updateStandingbook(standingbook);
    }

    /**
     * 批量删除台账记录1
     * 
     * @param recordIds 需要删除的台账记录1主键
     * @return 结果
     */
    @Override
    public int deleteStandingbookByRecordIds(Long[] recordIds)
    {
        return standingbookMapper.deleteStandingbookByRecordIds(recordIds);
    }

    /**
     * 删除台账记录1信息
     * 
     * @param recordId 台账记录1主键
     * @return 结果
     */
    @Override
    public int deleteStandingbookByRecordId(Long recordId)
    {
        return standingbookMapper.deleteStandingbookByRecordId(recordId);
    }
}
